<script setup>
import { ref } from 'vue'
import CodeShow from './CodeShow.vue'
import { codeText0 } from './codetext';
defineProps({
  msg: String,
})

const count = ref(0)
const increment = () => {
  count.value++
}

</script>

<template>
  <h2 class="title">{{ msg }}</h2>
  <button type="button" @click="increment">count is {{ count }}</button>
  <code-show :code-text="codeText0" />
</template>

<style scoped>
.title {
  color: red;
}
</style>
